<template>
	<view>
		<dsl-navbar title="设置" isBack bgTopImg="white"></dsl-navbar>
		<view class="padding rowsb align-center solid-bottom" 
		@click="$tools.push('/pages/plugins/privacyAgreement?type=1')">
			<view>用户协议</view>
			<view class="cuIcon-right"></view>
		</view>
		<view class="padding rowsb align-center solid-bottom"
			@click="$tools.push('/pages/plugins/privacyAgreement?type=2')">
			<view>隐私协议</view>
			<view class="cuIcon-right"></view>
		</view>
		<view class="padding rowsb align-center solid-bottom"
			@click="$tools.push('/pages/plugins/privacyAgreement?type=3')">
			<view>服务协议</view>
			<view class="cuIcon-right"></view>
		</view>
		<view class="padding rowsb align-center solid-bottom"
		@click="$tools.showToast('已是最新版本')">
			<view>版本更新</view>
			<view class="cuIcon-right"></view>
		</view>

		<view class="from_button" @click="outLogin">退出登录</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		//生命周期函数
		onReady() {},
		onLoad() {},
		onShow() {},
		methods: {
			//退出登录
			outLogin() {
				let v = this
				uni.showActionSheet({
					itemList: ['退出登录'],
					success: function(res) {
						if (res.tapIndex == 0) {
							v.$tools.showToast2('退出成功')
							uni.clearStorageSync()
							setTimeout(r => {
								uni.reLaunch({
									url: '../../login/loginTwo'
								})
							}, 1000)
						} else {}
					}

				});


			}
		},
		computed: {},
		components: {}
	}
</script>

<style>
	.from_button {
		width: 654rpx;
		height: 98rpx;
		background: #00D88F;
		box-shadow: 0px 1rpx 10rpx rgba(0, 216, 143, 0.5);
		opacity: 1;
		border-radius: 60rpx;
		line-height: 98rpx;
		color: white;
		text-align: center;
		margin: 0 auto;
		margin-top: 100rpx;
	}

	page {
		background: white;
	}
</style>
